home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VMR / Renderless / project.h < prev    next >
C/C++ Source or Header  |  2001-10-08  |  860b  |  32 lines

  1. //------------------------------------------------------------------------------
  2. // File: project.h
  3. //
  4. // Desc: DirectShow sample code - main header file for Renderless player
  5. //
  6. // Copyright (c) 1994 - 2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9. #include "app.h"
  10. #include "vcdplyer.h"
  11. #include "resource.h"
  12.  
  13.  
  14. #ifndef __RELEASE_DEFINED
  15. #define __RELEASE_DEFINED
  16. template<typename T>
  17. __inline void RELEASE( T* &p )
  18. {
  19.     if( p ) {
  20.         p->Release();
  21.         p = NULL;
  22.     }
  23. }
  24. #endif
  25.  
  26. #ifndef CHECK_HR
  27.     #define CHECK_HR(expr) do { if (FAILED(expr)) __leave; } while(0);
  28. #endif
  29.  
  30. // {B87BEB7B-8D29-423f-AE4D-6582C10175AC}
  31. //DEFINE_GUID(CLSID_VideoMixingRenderer,0xb87beb7b, 0x8d29, 0x423f, 0xae, 0x4d, 0x65, 0x82, 0xc1, 0x1, 0x75, 0xac);
  32.